/**
 * 
 */
package denaris.core.entity;

import javax.microedition.lcdui.game.Sprite;

import denaris.core.AbstractDenarisMap;
import denaris.core.controller.AbstractController;
import denaris.core.controller.StaticController;
import denaris.factory.ImageFactory;

/**
 * @author stkl23
 *
 */
public class Satellite extends Collectible {
	public Satellite(AbstractDenarisMap parentMap, int x, int y, int type) {
		super(parentMap, x, y, type, false);
		// set the satellite type
		controller.getSprite().setFrame(type);
	}
	
	public AbstractController createController() {
		StaticController staticController = new StaticController();
		Sprite sprite = new Sprite(ImageFactory.getImage("/denaris/resource/sprite/sattypes.png"), 15, 13);
		staticController.setSprite(sprite);
		staticController.setDoAnimate(false);
		setController(staticController);
		
		return staticController;
	}
}
